package com.project.mapper;

import com.project.bean.SpeakBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ISpeakMapper {
    /**
     * 添加评论
     * @param speak 评论对象
     */
    @Insert("INSERT INTO t_speak(fk_userId,fk_productId,s_content,s_date)" +
            "value(#{user.id},#{product.id},#{content},#{speakDate})")
    public void add(SpeakBean speak);
}
